package com.forever7776.life.core.entity.admin;

import java.io.Serializable;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 管理员用户表
 * </p>
 *
 * @author kz
 * @since 2018-01-18
 */
@TableName("admin_user")
public class AdminUser extends Model<AdminUser> {

    private static final long serialVersionUID = 1L;

	private String id;
    /**
     * 用户名(登录名,如jack)
     */
	private String username;
    /**
     * 密码
     */
	private String password;
    /**
     * 头像
     */
	private String headimg;
    /**
     * 昵称
     */
	private String nickname;
    /**
     * 用户真实姓名
     */
	private String name;
    /**
     * 邮箱
     */
	private String email;
    /**
     * 手机
     */
	private String phone;
    /**
     * 最后登录时间
     */
	@TableField("login_time")
	private Date loginTime;
    /**
     * 登出时间(手动登出,系统登出即session超时时间)
     */
	@TableField("logout_time")
	private Date logoutTime;
    /**
     * 创建时间
     */
	@TableField("insert_date")
	private Date insertDate;
    /**
     * 更新时间
     */
	@TableField("last_update")
	private Date lastUpdate;
    /**
     * 封号:0 正常：1  手动注销：2  系统销毁：3
     */
	private Integer status;


	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getHeadimg() {
		return headimg;
	}

	public void setHeadimg(String headimg) {
		this.headimg = headimg;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public Date getLoginTime() {
		return loginTime;
	}

	public void setLoginTime(Date loginTime) {
		this.loginTime = loginTime;
	}

	public Date getLogoutTime() {
		return logoutTime;
	}

	public void setLogoutTime(Date logoutTime) {
		this.logoutTime = logoutTime;
	}

	public Date getInsertDate() {
		return insertDate;
	}

	public void setInsertDate(Date insertDate) {
		this.insertDate = insertDate;
	}

	public Date getLastUpdate() {
		return lastUpdate;
	}

	public void setLastUpdate(Date lastUpdate) {
		this.lastUpdate = lastUpdate;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "AdminUser{" +
			", id=" + id +
			", username=" + username +
			", password=" + password +
			", headimg=" + headimg +
			", nickname=" + nickname +
			", name=" + name +
			", email=" + email +
			", phone=" + phone +
			", loginTime=" + loginTime +
			", logoutTime=" + logoutTime +
			", insertDate=" + insertDate +
			", lastUpdate=" + lastUpdate +
			", status=" + status +
			"}";
	}
}
